<script type="text/javascript">

 function kt()
 	{
 		with(document.changepass)
		 {
		  if(newpass.value!=password.value)
			 {
			 	alert("Mat khau khong khop");
				 newpass.focus();
				 return false;			 
			 }
			 
			 submit();
				  return true;	 		 		 	  		 		 		 	  		 		 		 	  		 		 		 	 		 		 	  		 		 		 	 		 		 	  		 		 		 	 		 		 	  		 		 		 
		 } 	 	 	 	
 	}
  </script>
<div style="font-size:16px;"> 
  <fieldset style="width:90%;">
       
  <legend>Thay Đổi Pass</legend>
  <form name="changepass"   method="POST" action="User/changepassword.php">
  <p id="field"><span id="text"> Mật Khẩu Mới</span>
    <input id="password" name="password" type="password"  value="" size="50" />
  </p>
   <p id="field"><span id="text">Nhật lại Mật Khẩu Mới</span>
    <input id='newpass' type="password"  name="newpass" value="" size="50" />
</p>
<input type="button" name="chapnhan" value="Chap nhan"  onclick="kt();"/><input type="reset" value="Nhap lai" name="nhaplai" /></p>

  </form>
</fieldset>

</div>